package com.zzyl.service;

import com.zzyl.base.PageBean;
import com.zzyl.dto.ReservationQueryDto;
import com.zzyl.entity.Reservation;
import com.zzyl.vo.ReservationVo;
import com.zzyl.vo.TimeCountVo;
import com.zzyl.vo.VisitVo;

import java.util.List;

public interface ReservationService {

    /**
     * 分页查找预约信息
     */
    PageBean<ReservationVo> findByPage(ReservationQueryDto dto);

    Integer cancelledcount();

    List<TimeCountVo> countByTime(Long time);

    void add(Reservation reservation);

    void cancel(Long id);



    PageBean<VisitVo> query(ReservationQueryDto dto);
}
